package com.clear.composite;

/**
 * Leaf（叶子节点）
 */
public class File implements FileSystem {

    private String name;
    private Long size = 10l;    //为了简单，给他个初始值

    public File(String name) {
        this.name = name;
    }

    @Override
    public void display() {
        System.out.println("File: " + name + ", size: " + size + "MB");
    }
}
